
# Title

## Replication Archive

Noam Gidron, Will Horne, Thomas Tichelbaecker, James Adams

## Download

To replicate the tables and figures in the main text and in the appendix make sure that you download the entire replication archive from the Dataverse and unzip it into one folder.

## Folder structure

The replication archive contains the following folders:

- `./code/`: Contains all the scripts necessary to replicate figures and tables in the paper and appendix.
- `./data/`: Contains all the data files necessary for the scripts in `./code/` to run. 

## Replication

### R scripts

To replicate figures and tables generated in R, follow these steps:

1. **Important:** Open the file `polarization-experimentBJPS.rproj` in RStudio first. This step is necessary to set all the correct file paths in the other R scripts.
2. From within RStudio, open the R script in the `/code/` folder for which you want to replicate the results. Script names are labelled according to their figure/table number in the main paper or the appendix.
3. Run the script. Each script is self-contained and loads all the necessary data from the `/data/` folder.
4. Results will be stored in `/figures/` or `/tables/` with the respective table/figure name.